﻿// =================================================================== 
// 项目说明
//====================================================================
// 陈岩。@Copy Right 2006-2012
// 文件： Userstatistics.cs
// 项目名称：工程项目管理
// 创建时间：2012/6/29
// 负责人：陈岩
// ===================================================================
using System;
using System.Data;
using Enter.DataCommon;

namespace Enter.DataProxy.Statistics.Entity
{
	/// <summary>
	///Userstatistics数据实体
	/// </summary>
	[Serializable]
	public class UserstatisticsEntity : DataMapDictionary
	{
		
		#region 公共属性
		
		///<summary>
		///
		///</summary>
		public int id
		{
			get {return Get<int>("id");}
			set {Set("id", value);}
		}

		///<summary>
		///
		///</summary>
		public int userid
		{
			get {return Get<int>("userid");}
			set {Set("userid", value);}
		}

		///<summary>
		///
		///</summary>
		public int Yesterdaypv
		{
			get {return Get<int>("Yesterdaypv");}
			set {Set("Yesterdaypv", value);}
		}

		///<summary>
		///
		///</summary>
		public int YesterdayIp
		{
			get {return Get<int>("YesterdayIp");}
			set {Set("YesterdayIp", value);}
		}

		///<summary>
		///
		///</summary>
		public int Totalpv
		{
			get {return Get<int>("Totalpv");}
			set {Set("Totalpv", value);}
		}

		///<summary>
		///
		///</summary>
		public int Totalip
		{
			get {return Get<int>("Totalip");}
			set {Set("Totalip", value);}
		}

		///<summary>
		///
		///</summary>
		public DateTime Yesterdaytime
		{
			get {return Get<DateTime>("Yesterdaytime");}
			set {Set("Yesterdaytime", value);}
		}

		///<summary>
		///
		///</summary>
		public int state
		{
			get {return Get<int>("state");}
			set {Set("state", value);}
		}

		///<summary>
		///
		///</summary>
		public int daypv
		{
			get {return Get<int>("daypv");}
			set {Set("daypv", value);}
		}

		///<summary>
		///
		///</summary>
		public int dayip
		{
			get {return Get<int>("dayip");}
			set {Set("dayip", value);}
		}

		///<summary>
		///
		///</summary>
		public DateTime losttime
		{
			get {return Get<DateTime>("losttime");}
			set {Set("losttime", value);}
		}
	
		#endregion
		
		#region 私有方法
		
				/// <summary>
		/// 表中所有的成员字段
		/// </summary>
		private static readonly MapSetSchema _schema;

		static UserstatisticsEntity()
		{
			_schema = new MapSetSchema();
			_schema.AddField("id");
			_schema.AddField("userid");
			_schema.AddField("Yesterdaypv");
			_schema.AddField("YesterdayIp");
			_schema.AddField("Totalpv");
			_schema.AddField("Totalip");
			_schema.AddField("Yesterdaytime");
			_schema.AddField("state");
			_schema.AddField("daypv");
			_schema.AddField("dayip");
			_schema.AddField("losttime");
			_schema.Compile();
		}
		/// <summary>
		/// 初始化
		/// </summary>
		public UserstatisticsEntity()
			: base(_schema)
		{

		}
		
		#endregion
	}
}
